package com.frank.reader.service.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 与业务逻辑相关的异常类
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class BussinessException extends RuntimeException {
    private String code;
    private String msg;

    public BussinessException(String code, String msg) {
        super(code + ":" + msg);
        this.code = code;
        this.msg = msg;
    }

}
